package com.simple.cloud.service;

import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.simple.cloud.domain.entity.SysRole;
import com.simple.cloud.domain.req.SysRoleReq;
import com.simple.cloud.domain.resp.SysRoleResp;

import java.util.List;

public interface SysRoleService extends IService<SysRole> {
    SysRoleResp getById(Long id);
    Page<SysRoleResp> getPage(SysRoleReq req);
    List<SysRoleResp> getAll(SysRoleReq req);

    boolean saveAndEdit(SysRoleReq req);

    boolean deleteByIds(List<Long> ids);

}
